package Day5Zuoye;

public class Pet {
    private String name;
    private String strain;
    private int heavy;

    public void eat(){
        System.out.println("我干饭...");
    }
    public void sleep(){
        System.out.println("我睡觉zzz");
    }


    public Pet(String name, String strain, int heavy) {
        this.name = name;
        this.strain = strain;
        this.heavy = heavy;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStrain() {
        return strain;
    }

    public void setStrain(String strain) {
        this.strain = strain;
    }

    public int getHeavy() {
        return heavy;
    }

    public void setHeavy(int heavy) {
        this.heavy = heavy;
    }
}
